package com.spider.iceCream.service;

import com.spider.iceCream.entity.Video;
import com.spider.iceCream.mapper.VideoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lord
 * @date 2021/7/13 9:29
 */
@Service
public class VideoService {

    @Autowired
    public VideoMapper videoMapper;

    public Video isExistVideo(Integer oid){
        return videoMapper.isExistVideo(oid);
    }

    public int insertVideo(Video video){
        return videoMapper.insertVideo(video);
    }

    public List<Video> getVideoByBV(String BV){return  videoMapper.getVideoByBV(BV);}

    public List<Video> test(){return videoMapper.test();}

    public int updateUpper(Video video){return videoMapper.updateUpper(video);}

    public int updateImgUrl(Video video){return videoMapper.updateImgUrl(video);}

}
